/*
 * @Descripttion: 
 * @Author: 银河以北
 * @Date: 2023-03-30 20:50:15
 * @LastEditors: 银河以北
 * @LastEditTime: 2023-04-20 19:35:38
 */
/**
 * 判断设备是移动端还是PC端
 * @returns 
 */
export function isPc() {
    if (
        navigator.userAgent.match(
            /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
        )
    ) {
        return false; // 手机端
    } else {
        return true; // alert('PC端')
    }
}


export const randomRGB = () => {
    const r = Math.floor(Math.random() * 255)
    const g = Math.floor(Math.random() * 255)
    const b = Math.floor(Math.random() * 255)
    return `rgb(${r}, ${g}, ${b})`
}
